﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business_Layer;

namespace Control_Layer
{
    // See UseCase:
    // UCD00-ADDITIONS (04)
    public class CCAddSubmindmap
    {
        private Service service;
        private Project project;

        public CCAddSubmindmap()
        {
            service = Service.GetInstance;
            project = service.GetProject;
        }

        /// <summary>
        /// Adds a submindmap to the project.
        /// </summary>
        /// <param name="name">The submindmap's name.</param>
        public void Add(string name)
        {
            if (name.Trim() != "")
                project.AddMindmap(name);
        }
    }
}